import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Main from '../pages/Main/Main.vue'
import AllScroll from '../pages/MintUI/AllScroll.vue'
import UploadPic from '../pages/UploadPic/UploadPic.vue'
import MinioUpload from '../pages/MinioUpload/MinioUpload.vue'
import RichEditor from '../pages/RichEditor/RichEditor.vue'
import EChartsDemo from '../pages/EChartsDemo/EChartsDemo.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Main',
      component: Main
    },
    {
      path: '/helloWorld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/allScroll',
      name: 'AllScroll',
      component: AllScroll
    },
    {
      path: '/uploadPic',
      name: 'UploadPic',
      component: UploadPic
    },
    {
      path: '/minioUpload',
      name: 'MinioUpload',
      component: MinioUpload
    },
    {
      path: '/richEditor',
      name: 'RichEditor',
      component: RichEditor
    },
    {
      path: '/eChartsDemo',
      name: 'EChartsDemo',
      component: EChartsDemo
    }
  ]
})
